#region Copyright
/// <copyright>
/// Copyright (c) 2007 Ilia Shramko.
/// Released under the terms of the GNU General Public License.
/// </copyright>
#endregion

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Text;

namespace Osh.Scripting
{
	[ClassInterface(ClassInterfaceType.None)]
	public class ScriptTraceSource : TraceSource, IScriptTraceSource
	{
		public ScriptTraceSource(string name) : base(name)
		{
		}

		public ScriptTraceSource(string name, SourceLevels defaultLevel) : base(name, defaultLevel)
		{
		}

		#region IScriptTraceSource Members
		public void Error(string message)
		{
			Log.Error(this, message);
		}

		public void Warning(string message)
		{
			Log.Warning(this, message);
		}

		public void Info(string message)
		{
			Log.Info(this, message);
		}

		public void Write(string message)
		{
			Log.Write(this, message);
		}
		#endregion IScriptTraceSource Members
	}
}
